projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ed9f52
)
rofiles-fuse: Do allow fchmod/fchown on directories
author
Colin Walters
<walters@verbum.org>
Sun, 26 Jun 2016 14:23:56 +0000
(10:23 -0400)
committer
Atomic Bot
<atomic-devel@projectatomic.io>
Mon, 27 Jun 2016 13:08:46 +0000
(13:08 +0000)
The program is called ro*files* and ostree creates physical
copies of directories, so changing them is fine.
I hit this when trying to do a copy checkout onto an rofiles-fuse
mount.
Closes: #368
Approved by: jlebon
src/rofiles-fuse/main.c
patch
|
blob
|
history
diff --git
a/src/rofiles-fuse/main.c
b/src/rofiles-fuse/main.c
index bdf7ffb830448ac4e767e1c7f56cc7b42fc2a1f6..8468276d0883343eba31a194b8053ac5a1064a84 100644
(file)
--- a/
src/rofiles-fuse/main.c
+++ b/
src/rofiles-fuse/main.c
@@
-261,8
+261,11
@@
can_write (const char *path)
else
return -errno;
}
- if (!devino_set_contains (stbuf.st_dev, stbuf.st_ino))
- return -EROFS;
+ if (!S_ISDIR (stbuf.st_mode))
+ {
+ if (!devino_set_contains (stbuf.st_dev, stbuf.st_ino))
+ return -EROFS;
+ }
return 0;
}